/** @jsxImportSource @emotion/react */
import * as React from "react";
import {  OriginalViewProps,  } from "../../common/base";
import {config设备概况, EntranceSetup} from "./orcBase";
import { createItem,  } from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {ThreeConfigRaft} from "../../gas/editor";
import {ConclusionOrgan} from "./editor";
import {MetacomponM, MetacomponOther, OtherTestItems} from "./editorMeta";
import {AppendixDiagram} from "../../boiler/AppendixDiagram";


const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('Survey', <ThreeConfigRaft config={config设备概况}  label={'检查结论报告-设备概况'}>
          </ThreeConfigRaft>),
  createItem('Conclusion', <ConclusionOrgan label={'检验结论报告-下结论'}/>),
  createItem('MetacomponM', <MetacomponM label={'受压元部件检查-(上)'}/>),
  createItem('MetacomponO', <MetacomponOther label={'受压元部件检查-(下)'}/>),
  createItem('OtherTestItems', <OtherTestItems label={'其他检验项目'}/>),
  createItem('AppendixPic', <AppendixDiagram maxFile={20}/>),
];


export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );

